<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:choose>
	<c:when test="${ empty sessionScope.account}">
		<div style="float: right;">
			<form action="/VancouverTongue/login" method="post">
				User name: <input type="text" maxlength="15" name="userId" /><br />
				Password: <input type="password" maxlength="20" name="password" /><br />
				<input type="submit" value="Login" /> 
				<a href="/VancouverTongue/register"><input type="button" value="register" /></a>
			</form>
		</div>
	</c:when>

	<c:otherwise>
		<div style="float: right;">
			<form action="/VancouverTongue/logout" method="post">
				<a
					href="/VancouverTongue/profile?userId=${sessionScope.account.userId}">My
					Profile</a> <input type="submit" value="Logout" />
			</form>
		</div>
	</c:otherwise>
</c:choose>

<div>
	<img src="/VancouverTongue/static/logo.png" alt="logo" />
</div>
<div id="navi" class="greenBar">
	<div class="naviButton" onclick="window.location='/VancouverTongue/'">HOME</div>
	<div class="naviButton"
		onclick="window.location='/VancouverTongue/browse'">BROWSE ALL</div>
	<div class="naviButton"
		onclick="window.location='/VancouverTongue/search'">SEARCH</div>
	<div class="naviButton"
		onclick="window.location='/VancouverTongue/addRestaurant'">ADD
		RESTAURANT</div>
	<c:choose>
		<c:when test="${account.level eq 3}">
			<div class="naviButton"
				onclick="window.location='/VancouverTongue/admin'">ADMIN</div>
		</c:when>
		<c:otherwise>
			<div class="naviButton"
				onclick="window.location='/VancouverTongue/Contact'">CONTACT
				US</div>
		</c:otherwise>
	</c:choose>

	<div class="floatBase"></div>
</div>